package com.sakuracard.stepdemo.web.model;

import lombok.Data;

import java.util.List;

@Data
public class ListResult<T> {
  private int currentPage;
  private int total;
  private int lastPage;
  private int perPage;
  private List<T> data;

  public ListResult(int currentPage, int total, int lastPage, int perPage, List<T> data) {
    this.currentPage = currentPage;
    this.total = total;
    this.lastPage = lastPage;
    this.perPage = perPage;
    this.data = data;
  }
}
